﻿<Page x:Class="LprMiddleWare.Views.SettingPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        DataContext="{Binding MainViewModel, Source={StaticResource Locator}}"
      xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
      xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
      d:DesignHeight="496"
      d:DesignWidth="450" >
    <Page.Resources>
        <Thickness x:Key="ControlMargin">12,10,12,0</Thickness>
    </Page.Resources>
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition   />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
        <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" Margin="3">
            <StackPanel>
                <dxlc:GroupBox Header="数据库"
                    x:Name="groupBox1" >
                    <StackPanel x:Name="grid1">
                        <Label Content="数据库"
                            x:Name="label1"
                       />
                        <dxe:TextEdit
                            x:Name="textEdit1" />
                        <Label Content="用户名"
                            x:Name="label2" Margin="0,5,0,0"
                       />
                        <dxe:TextEdit
                            x:Name="textEdit2" />
                        <Label Content="密码"
                            x:Name="label3"
                            VerticalAlignment="Top" Margin="0,5,0,0" />
                        <dxe:TextEdit
                            x:Name="textEdit3"
                            VerticalAlignment="Top" />
                    </StackPanel>
                </dxlc:GroupBox>
                <dxlc:GroupBox>
                    <dxlc:GroupBox.Header>
                        <dxe:CheckEdit Content="叠加文字"/>
                    </dxlc:GroupBox.Header>
                    <StackPanel>
                        <Label Content="文字模板"/>
                        <dxe:TextEdit 
                            x:Name="textEdit2_Copy"  />
                        <TextBlock TextWrapping="Wrap"  Margin="12,7,0,0"><Run Text="{}{0}: 时间"/><LineBreak/><Run Text="{}{1}: 卡口名称"/><LineBreak/><Run Text="{}{2}: 车道名称"/></TextBlock>
                    </StackPanel>
                </dxlc:GroupBox>
                <dxlc:GroupBox Header="其他">
                    <StackPanel>
                        <Label Content="图片保存路径"/>
                        <Grid Height="22">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.8*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <dxe:TextEdit
                                x:Name="textEdit2_Copy1" d:LayoutOverrides="Height" />
                            <Button Content="浏览..." d:LayoutOverrides="Height" Grid.Column="1" Margin="3,0,0,0" Padding="3,0,3,1"/>
                        </Grid>
                    </StackPanel>
                </dxlc:GroupBox>
            </StackPanel>
        </ScrollViewer>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Width="155" Margin="0,14,12,10">
            <Button Content="应用" Width="75"/>
            <Button Content="取消" Width="75" HorizontalAlignment="Right" Margin="5,0,0,0"/>
        </StackPanel>
        <Path Data="M8,455 L436,455" Height="1.5" Grid.Row="1" Stretch="Fill" Stroke="#FF3F3C3C" VerticalAlignment="Top"/>
    </Grid>
</Page>
